/**
 *  Copyright 2010 ShenYang voole Co. Ltd.
 *  All right reserved. 
 */
package com.dianning.service;

import java.util.Date;
import java.util.List;

import com.dianning.bean.Money;
import com.dianning.bean.MoneyLog;
import com.dianning.bean.Visitor;
import com.dianning.exception.DianningException;
import com.dianning.service.web.PageList;
import com.dianning.service.web.Pages;

/**
 * 功能描述:用户积分操作接口
 *
 * 创建日期 Apr 10, 2010
 *
 * @author zhangbaochao
 *
 * @version 1.0
 *
 */
public interface MoneyService {
	
	/**
	 * 根据主键ID获取Money对象
	 * 
	 * @param uid
	 * 			主键ID
	 * @return Money
	 * 			Money对象
	 */
	public Money findMoneyByUid(long uid);
	
	/**
	 * 更新Money对象
	 * @param money
	 * @param moneyLog
	 * @return Money
	 */
	public Money updateMoney(Money money,MoneyLog moneyLog);
	
	/**
	 * 获取MoneyLog对象列表
	 * @param uid
	 * @param startTime
	 * @param endTime
	 * @param logtype
	 * @param orderby
	 * @param ascOrDesc
	 * @param pages
	 * @return PageList
	 */
	public PageList findMoneyLogs(long uid,Date startTime,Date endTime,String logtype,String orderby, int ascOrDesc,Pages pages);
}
